package io.renren.modules.iots.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.iots.dao.CtrlIotsRelationDao;
import io.renren.modules.iots.entity.CtrlIotsRelationEntity;
import io.renren.modules.iots.service.CtrlIotsRelationService;


@Service("ctrlIotsRelationService")
public class CtrlIotsRelationServiceImpl extends ServiceImpl<CtrlIotsRelationDao, CtrlIotsRelationEntity> implements CtrlIotsRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<CtrlIotsRelationEntity> page = this.selectPage(
                new Query<CtrlIotsRelationEntity>(params).getPage(),
                new EntityWrapper<CtrlIotsRelationEntity>()
        );

        return new PageUtils(page);
    }

}
